package com.atguigu.principle.dependInversion.dependDeliver3Way.constructionMethodDeliver;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 依赖传递方式-2：构造方法传递（通过构造方法实现依赖传递）
 * @create: 2022-01-10 15:42
 **/
public class ConstructionMethodDeliver {
    public static void main(String[] args) {
        OpenAndClose openAndClose = new OpenAndClose(new ChangHongTv());
        openAndClose.open();
    }
}
